<?php 

class Logger {
    protected static $logFilePath   = 'log.txt';

    protected static $logTempate    = "%s\t%s\r\n";

    public function __construct() {
        //something        
    }

    public static function log($msg) {
        $file   = new File(self::$logFilePath, self::formatLogMsg($msg));

        $file->appendFile();
    }
    
    protected static function formatLogMsg($msg) {
        return sprintf(self::$logTempate, date('Y-m-d H:m:s'), $msg);
    }

}

?>
